import { ApiProperty } from '@nestjs/swagger'
import { Column, Entity } from 'typeorm'
import { BaseEntity } from '../../../base.entity'

@Entity({ name: 'base_custom' })
export default class BaseCustom extends BaseEntity {
  @Column({ type: 'varchar', length: 50, unique: true, name: 'custom_code',comment: '客户编码' })
  @ApiProperty()
  customCode: string

  @Column({ type: 'varchar', length: 50, name: 'custom_name',comment: '客户名称' })
  @ApiProperty()
  customName: string

  @Column({ type: 'varchar', length: 50, name: 'custom_short',comment: '客户简称' })
  @ApiProperty()
  customShort: string

  @Column({ type: 'varchar', nullable: true, comment: '联系人' })
  @ApiProperty()
  contacts: string

  @Column({ type: 'varchar', nullable: true, comment: '联系电话' })
  @ApiProperty()
  contactsTel: string

  @Column({ type: 'varchar', nullable: true, comment: '客户类型ID' })
  @ApiProperty()
  customTypeId: string

  @Column({ type: 'varchar', nullable: true, comment: '客户类型' })
  @ApiProperty()
  customTypeName: string

  @Column({ type: 'varchar', nullable: true, comment: '销售人员' })
  @ApiProperty()
  salesman: string

  @Column({ type: 'varchar', nullable: true, comment: '客户爱好' })
  @ApiProperty()
  customHobby: string

  @Column({ type: 'varchar', nullable: true, comment: '客户地址' })
  @ApiProperty()
  customAddress: string

  @Column({ type: 'varchar', nullable: true, comment: '备注'  })
  @ApiProperty()
  remark: string
}
